package com.woniu.common.entity;

import java.io.Serializable;

/**
 * jp_user
 * @author 
 */
public class JpUser implements Serializable {
    /**
     * 唯一ID
     */
    private Long id;

    /**
     * 微信昵称
     */
    private String wxuname;

    /**
     * 微信头像
     */
    private String wxicon;

    /**
     * 微信性别
     */
    private Integer wxsex;

    /**
     * 手机号码
     */
    private Long phone;

    /**
     * 注册时间
     */
    private String regdate;

    /**
     * 用户类型：1.新用户 2.vip
     */
    private Integer usertype;

    /**
     * 微信用户唯一标识
     */
    private String uniquecode;

    /**
     * 电子邮箱
     */
    private String email;

    /**
     * 登陆密码
     */
    private String password;

    private String sessionid;

    /**
     * 登录时间
     */
    private String lastlogintime;

    /**
     * 最后登录ip地址
     */
    private String lastloginip;

    /**
     * 登录次数
     */
    private Integer logincount;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWxuname() {
        return wxuname;
    }

    public void setWxuname(String wxuname) {
        this.wxuname = wxuname;
    }

    public String getWxicon() {
        return wxicon;
    }

    public void setWxicon(String wxicon) {
        this.wxicon = wxicon;
    }

    public Integer getWxsex() {
        return wxsex;
    }

    public void setWxsex(Integer wxsex) {
        this.wxsex = wxsex;
    }

    public Long getPhone() {
        return phone;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public String getRegdate() {
        return regdate;
    }

    public void setRegdate(String regdate) {
        this.regdate = regdate;
    }

    public Integer getUsertype() {
        return usertype;
    }

    public void setUsertype(Integer usertype) {
        this.usertype = usertype;
    }

    public String getUniquecode() {
        return uniquecode;
    }

    public void setUniquecode(String uniquecode) {
        this.uniquecode = uniquecode;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSessionid() {
        return sessionid;
    }

    public void setSessionid(String sessionid) {
        this.sessionid = sessionid;
    }

    public String getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(String lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    public String getLastloginip() {
        return lastloginip;
    }

    public void setLastloginip(String lastloginip) {
        this.lastloginip = lastloginip;
    }

    public Integer getLogincount() {
        return logincount;
    }

    public void setLogincount(Integer logincount) {
        this.logincount = logincount;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JpUser other = (JpUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getWxuname() == null ? other.getWxuname() == null : this.getWxuname().equals(other.getWxuname()))
            && (this.getWxicon() == null ? other.getWxicon() == null : this.getWxicon().equals(other.getWxicon()))
            && (this.getWxsex() == null ? other.getWxsex() == null : this.getWxsex().equals(other.getWxsex()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getRegdate() == null ? other.getRegdate() == null : this.getRegdate().equals(other.getRegdate()))
            && (this.getUsertype() == null ? other.getUsertype() == null : this.getUsertype().equals(other.getUsertype()))
            && (this.getUniquecode() == null ? other.getUniquecode() == null : this.getUniquecode().equals(other.getUniquecode()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getSessionid() == null ? other.getSessionid() == null : this.getSessionid().equals(other.getSessionid()))
            && (this.getLastlogintime() == null ? other.getLastlogintime() == null : this.getLastlogintime().equals(other.getLastlogintime()))
            && (this.getLastloginip() == null ? other.getLastloginip() == null : this.getLastloginip().equals(other.getLastloginip()))
            && (this.getLogincount() == null ? other.getLogincount() == null : this.getLogincount().equals(other.getLogincount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getWxuname() == null) ? 0 : getWxuname().hashCode());
        result = prime * result + ((getWxicon() == null) ? 0 : getWxicon().hashCode());
        result = prime * result + ((getWxsex() == null) ? 0 : getWxsex().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getRegdate() == null) ? 0 : getRegdate().hashCode());
        result = prime * result + ((getUsertype() == null) ? 0 : getUsertype().hashCode());
        result = prime * result + ((getUniquecode() == null) ? 0 : getUniquecode().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getSessionid() == null) ? 0 : getSessionid().hashCode());
        result = prime * result + ((getLastlogintime() == null) ? 0 : getLastlogintime().hashCode());
        result = prime * result + ((getLastloginip() == null) ? 0 : getLastloginip().hashCode());
        result = prime * result + ((getLogincount() == null) ? 0 : getLogincount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", wxuname=").append(wxuname);
        sb.append(", wxicon=").append(wxicon);
        sb.append(", wxsex=").append(wxsex);
        sb.append(", phone=").append(phone);
        sb.append(", regdate=").append(regdate);
        sb.append(", usertype=").append(usertype);
        sb.append(", uniquecode=").append(uniquecode);
        sb.append(", email=").append(email);
        sb.append(", password=").append(password);
        sb.append(", sessionid=").append(sessionid);
        sb.append(", lastlogintime=").append(lastlogintime);
        sb.append(", lastloginip=").append(lastloginip);
        sb.append(", logincount=").append(logincount);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}